package com.qfedu.api.controller;


import com.qfedu.api.service.UserRegistService;
import com.qfedu.fmmall.beans.Users;
import com.qfedu.fmmall.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
public class UserRegistController {

    @Autowired
    private UserRegistService userRegistService;

    @PostMapping("/user/regist")
    public ResultVo regist(@RequestParam("username")String username,
                           @RequestParam("password")String password){
        System.out.println("");
        ResultVo resultVo = userRegistService.userResgit(username, password);
        return resultVo;
    }

}
